﻿using Framework.Infrastructure;
using Framework.Infrastructure.Cache.Redis;
using Framework.MVC.Infrastructure;
using Framework.MVC.Infrastructure.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Framework.MVC.Controllers
{
    public class HomeController : BaseController
    {
        public ActionResult Index()
        {
            return new HttpNotFoundResult();
        }

        [PhoneTokenValidate]
        public ContentResult PhoneInterface(PhoneTokenModel model)
        {
            if (model != null)
                return Content(string.Format("Id：{0}<br />UserName：{1}<br />UTCTime：{2}", model.Id, model.UserName, model.UTCTime));
            else
                return Content("实体为NULL");
        }

        [BKTokenValidate]
        public ContentResult BKInterface(BKTokenModel model)
        {
            if (model != null)
                return Content(string.Format("Id：{0}<br />UserName：{1}<br />UserRealName：{2}<br />IsSuperAdmin：{3}<br />UTCTime：{4}", model.Id, model.UserName, model.UserRealName, model.IsSuperAdmin, model.UTCTime));
            else
                return Content("实体为NULL");
        }

    }
}